//
//  UIColor+Extension.swift
//  CustomizeCollectionView
//
//  Created by GZOffice_hao on 2019/4/25.
//  Copyright © 2019 VT. All rights reserved.
//

import UIKit

extension UIColor {
    static var random: UIColor {
        let range = 0...255
        let r = CGFloat(Int.random(in: range))
        let g = CGFloat(Int.random(in: range))
        let b = CGFloat(Int.random(in: range))
        return UIColor(displayP3Red: r / 255, green: g / 255, blue: b / 255, alpha: 1)
    }
}
